import axios from 'axios';
import { getConfig } from '../plugins/vuelectron';

export const instance = axios.create({
    baseURL: '',
});

(async () => {
    getConfig().then((config) => {
        // console.log('config', config);
        instance.defaults.baseURL = config.serverUrl;
    })
})();